package com.lamda.zhekou.dao;

import com.lamda.zhekou.model.VPS;
import com.lamda.zhekou.model.VpsBuyRecord;
import com.lamda.zhekou.vo.IncomeTotalVo;

import java.sql.Timestamp;
import java.util.List;
import java.util.Set;

/**
 * Created by MJiao on 15/8/27.
 */
public interface VpsBuyRecordDao extends GenericDao<VpsBuyRecord> {
    List<IncomeTotalVo> getIncomeTotalList();
    Double getIncomeTotal();

    List<VpsBuyRecord> findVpsBuyRecords(Set<VPS> vpsSet, Timestamp startTimestamp, Timestamp endTimestamp);

    List<IncomeTotalVo> getIncomeTotalList(Timestamp startTimestamp, Timestamp endTimestamp);


    List<IncomeTotalVo> findIncomeTotalList(Set<VPS> vpsSet, Timestamp startTimestamp, Timestamp endTimestamp);

    /**
     * 统计vps的
     * @param vpsSet
     * @param startTimestamp
     * @param endTimestamp
     * @return
     */
    List<VpsBuyRecord> findVpsSellRecords(Set<VPS> vpsSet, Timestamp startTimestamp, Timestamp endTimestamp);
}
